package com.useeinfo.oa.modules.wuHanCommon.base.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import com.useeinfo.oa.modules.security.entity.SystemUser;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 报警组人员
 */
@Entity
@Table(name = "warning_group_inner_user")
public class WarningGroupInnerUser extends SuperClassEntity<WarningGroupInnerUser> {

    /**
     * 所属的报警组
     */
    @ManyToOne
    @JoinColumn(name = "warning_group_id")
    private WarningGroup warningGroup;
    /**
     * 所属的企业人员
     */
    @ManyToOne
    @JoinColumn(name = "user_id")
    private SystemUser systemUser;
    /**
     * 所属企业
     */
    @ManyToOne
    @JoinColumn(name = "enterprise_id")
    private Enterprise enterprise;

    public WarningGroupInnerUser(WarningGroup warningGroup, SystemUser systemUser, Enterprise enterprise) {
        this.warningGroup = warningGroup;
        this.systemUser = systemUser;
        this.enterprise = enterprise;
    }

    public WarningGroupInnerUser() {
    }

    public WarningGroup getWarningGroup() {
        return warningGroup;
    }

    public void setWarningGroup(WarningGroup warningGroup) {
        this.warningGroup = warningGroup;
    }

    public SystemUser getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(SystemUser systemUser) {
        this.systemUser = systemUser;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }


}
